package top.huhuiyu.springboot3.p2301.service.api;

import top.huhuiyu.springboot3.p2301.base.R;
import top.huhuiyu.springboot3.p2301.entity.api.*;

import java.util.List;

public interface AMapService {
    String WEATHER_BASE = "weather_base_%s";
    String WEATHER_ALL = "weather_all_%s";
    Integer LIVE_CACHE_TIME = 60 * 30;
    Integer CAST_CACHE_TIME = 60 * 60 * 24;

    String queryWeather(String city, String extensions);


    R<WeatherLives> queryWeatherBase(String city);

    R<List<WeatherCasts>> queryWeatherAll(String city);

    R<IpResult> queryIpInfo(String ip);

    R<GeoResult> queryGeo(String address, String city);
}
